﻿using System;
using System.Web.UI;

namespace SearchServer.UI.JSON
{
    public partial class ManejoArchivosUNC : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string json = string.Empty;
            string accion = string.Empty;
            if (Request["accion"] != null)
            {
                accion = Request["accion"];
            }
            string pathUnc = string.Empty;
            if (Request["pathUNC"] != null)
            {
                pathUnc = Request["pathUNC"];
            }
            if (accion == "AbrirElemento")
            {
                System.Diagnostics.Process.Start("explorer.exe", pathUnc);
            }
            Response.Write(json);
            Response.End();
        }
    }
}